package com.policyCloud.policyOauth.dao;

import com.policyCloud.policyOauth.pojo.CenterUsersRole;
import com.policyCloud.policyOauth.pojo.CenterUsersRoleCriteria;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CenterUsersRoleMapper {
    /**
     *
     * @mbg.generated
     */
    long countByExample(CenterUsersRoleCriteria example);

    /**
     *
     * @mbg.generated
     */
    int deleteByExample(CenterUsersRoleCriteria example);

    /**
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(@Param("roleId") Integer roleId, @Param("userId") Integer userId);

    /**
     *
     * @mbg.generated
     */
    int insert(CenterUsersRole record);

    /**
     *
     * @mbg.generated
     */
    int insertSelective(CenterUsersRole record);

    /**
     *
     * @mbg.generated
     */
    List<CenterUsersRole> selectByExample(CenterUsersRoleCriteria example);

    /**
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") CenterUsersRole record, @Param("example") CenterUsersRoleCriteria example);

    /**
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") CenterUsersRole record, @Param("example") CenterUsersRoleCriteria example);

    List<CenterUsersRole> selectPage(CenterUsersRoleCriteria example);
}